package org.zfes.snowier.zbss.xzy.biz.device.model;
import org.zfes.snowier.core.data.IBaseModel;
public class GroupDevice extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public GroupDevice() {}
	public GroupDevice(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->
	@javax.validation.constraints.NotNull(message="所属租户不能为空")
	  private java.lang.Long tenantId;
	@javax.validation.constraints.NotBlank(message="组名称不能为空")
	@javax.validation.constraints.NotNull(message="组名称不能为空")
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="组名称长度不能大于100")
	  private java.lang.String name;
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="备注长度不能大于100")
	  private java.lang.String remark;
	  private java.lang.Byte status;
	  private java.util.Date createTime;
	  private java.util.Date updateTime;
	@javax.validation.constraints.NotNull(message="根据大类是否可重复不能为空")
	  private java.lang.Byte repeatable;
	  private java.lang.Long parentId;
	  private java.lang.Long deviceCount;
 
	
	//<-------------------------------------------->
	public GroupDevice setTenantId(java.lang.Long tenantId){
	 this.tenantId=tenantId;
	 return this;
	}
	public java.lang.Long getTenantId(){
		return this.tenantId;
	}
	public GroupDevice setName(java.lang.String name){
		this.name=name==null?null:name.trim();
	 return this;
	}
	public java.lang.String getName(){
		return this.name;
	}
	public GroupDevice setRemark(java.lang.String remark){
		this.remark=remark==null?null:remark.trim();
	 return this;
	}
	public java.lang.String getRemark(){
		return this.remark;
	}
	public GroupDevice setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public GroupDevice setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}
	public GroupDevice setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}
	public GroupDevice setRepeatable(java.lang.Byte repeatable){
	 this.repeatable=repeatable;
	 return this;
	}
	public java.lang.Byte getRepeatable(){
		return this.repeatable;
	}
	public GroupDevice setParentId(java.lang.Long parentId){
	 this.parentId=parentId;
	 return this;
	}
	public java.lang.Long getParentId(){
		return this.parentId;
	}
	public GroupDevice setDeviceCount(java.lang.Long deviceCount){
	 this.deviceCount=deviceCount;
	 return this;
	}
	public java.lang.Long getDeviceCount(){
		return this.deviceCount;
	}

}
